<div class="sidebar">
    <div class="zhuanti">
        <h2 class="hometitle">特别推荐</h2>
        <ul>
            <#articles siteId="${site.id}" categoryId="" count="3" param="posid:2" var="article">
            <li>
                <i><img src="${article.image!}"></i>
                <p>${article.title} <span><a href="${article.url}">阅读</a></span> </p>
            </li>
            </#articles>
        </ul>
    </div>
    <div class="tuijian">
        <h2 class="hometitle">热门文章</h2>
        <ul class="sidenews">
            <#articles siteId="${site.id}" categoryId="" count="5" param="orderBy:'commentCount desc'" var="article">
            <li>
                <%if(isNotEmpty(article.image)){%>
                <i><img src="${article.image!}"></i>
                <%}%>
                <p><a href="${article.url}">${article.title}</a></p>
                <span>${article.updateDate,dateFormat="yyyy-MM-dd HH:mm"}</span>
            </li>
            </#articles>
        </ul>
    </div>
    <div class="tuijian">
        <h2 class="hometitle">点击排行</h2>
        <ul class="sidenews">
            <#articles siteId="${site.id}" categoryId="" count="5" param="orderBy:'hits desc'" var="article">
            <li>
                <%if(isNotEmpty(article.image)){%>
                <i><img src="${article.image!}"></i>
                <%}%>
                <p><a href="${article.url}">${article.title}</a></p>
                <span>${article.updateDate,dateFormat="yyyy-MM-dd HH:mm"}</span>
            </li>
            </#articles>
        </ul>
    </div>
    <div class="cloud">
        <h2 class="hometitle">标签云</h2>
        <ul>
            <a href="/">陌上花开</a> <a href="/">校园生活</a> <a href="/">html5</a> <a href="/">SumSung</a> <a href="/">青春</a> <a href="/">温暖</a> <a href="/">阳光</a> <a href="/">三星</a><a href="/">索尼</a> <a href="/">华维荣耀</a> <a href="/">三星</a> <a href="/">索尼</a>
        </ul>
    </div>
    <div class="links">
        <h2 class="hometitle">友情链接</h2>
        <ul>
            <!--友情链接,categoryId 为友情链接分类id-->
            <#links siteId="${site.id}" categoryId="1022" count="10" param="" var="link">
            <li><a href="${link.href}" target="_blank">${link.title}</a></li>
            </#links>
        </ul>
    </div>
    <div class="guanzhu" id="follow-us">
        <h2 class="hometitle">关注我们 么么哒！</h2>
        <ul>
            <#links siteId="${site.id}" categoryId="1023" count="10" param="" var="link">
            <%if(isNotEmpty(link.image)){%>
            <li class="wx"><img src="${link.image}"></li>
            <%}else{%>
            <li class="qq"><a target="_blank"><span>${link.title}</span><img src="${link.image}">${link.href}</a></li>
            <%}%>
            </#links>
        </ul>
    </div>
</div>